package abstract_ex2;

public class TesteAbstractInterface {

    public static void main(String[] args) {
        // Mamifero m1 = new Mamifero();
        //Equino e1 = new Equino() {};
        Cachorro c1 = new Cachorro();
        Mamifero m2 = new Cavalo();
        Mamifero m3 = new Mamifero() {public void mamar() {
                System.out.println("mamando");}};
    }
}
